package com.hailiang.saas.auth.remote.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.hailiang.mp.commonsource.api.CommonResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * API接口样例
 *
 * @author tao.shen
 * @version : TestApi, v1.0 2021年06月25日 下午2:31 tao.shen Exp $
 */
@Api(tags = "API接口样例")
//@FeignClient(name = "demo", contextId = "testServiceApi", path = "/demo")
public interface TestServiceApi {

    @ApiOperation(value = "测试服务接口")
    @GetMapping("/demo-api/testServiceApi/testOne")
    CommonResult<String> testOne(@RequestParam("name") String name);

}
